//signature of archive
#define _SIGN "HUFARC2"

//flags
#define LEN_8_B 0x80 // 8-bytes length 
#define NO_HUFF 0x40 // doesn't use compression
#define REPL_FILE 0x80 // replace the file
#define EXTR_FILE 0x0F // extract file
#define DEL_FILE_FL 0xFF00 // delete file
#define NEW_ARC 0xF000 // create new arc
#define NEW_FILE 0x0F0 // create new file
#define NEW_ARC_2 0xF0000 // create new file ???
#define __MARKER 0x01 // used in encryption
#define __MARKER_ 0x80 // used in decryption
#define _1_CHAR 0x20 // file contains 1 char

//Constants
#define SIGN_LEN 7
#define NAME_LEN 1
#define SIZE_T_1 1
#define SIZE_T_2 2
#define SIZE_T_4 4
#define SIZE_T_8 8
#define SIZE_T_32 32
#define SIZE_BUF (64*1024)
#define NEW_BUF_IN -1
#define NEW_BUF_OUT 1
#define NEW_DATA 0